package com.example.mybatis.demo.mapper;

import com.example.mybatis.demo.model.UserInfo;
import org.apache.catalina.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Li_yizYa
 * Date: 2025/7/15
 * Time: 10:52
 */
@Mapper
public interface UserInfoXmlMapper {

    List<UserInfo> selectAll();

    Integer insertUser(UserInfo userInfo);

    Integer insertUser2(@Param("userInfo") UserInfo userInfo);

    Integer updateUser(Integer id, String password);

    Integer deleteUserById(Integer id);

    Integer insertUserByCondition(UserInfo userInfo);

    List<UserInfo> selectByCondition(UserInfo userInfo);

    Integer updateByCondition(UserInfo userInfo);

    Integer batchDelete(List<Integer> ids);
}
